package com.tuniu.utils;

import com.xinbo.utils.HTTPUtils;
import com.xinbo.utils.ResponseListener;
import android.annotation.SuppressLint;
import android.content.Context;

@SuppressLint("DefaultLocale")
public class MyAPIUtils {

	//优惠首付领卷点击事件
	public static void getDetail2(Context context, String productId,ResponseListener listener){
		String detailUrl2 = "http://m.tuniu.com/api/gt/NwsDetail/ProductPriceInfoForApp?d=%7B%22backCity%22%3A%220%22%2C%22bookCity%22%3A%222500%22%2C%22departCity%22%3A%222500%22%2C%22planDate%22%3A%22%22%2C%22promotionDate%22%3A%22%22%2C%22productId%22%3A"
				+ productId
				+ "%2C%22useCache%22%3Afalse%7D&c=%7B%22v%22%3A%229.0.4%22%2C%22ct%22%3A20%2C%22dt%22%3A1%2C%22ov%22%3A14%2C%22p%22%3A17675%2C%22cc%22%3A2500%7D";
		HTTPUtils.get(context, detailUrl2, listener);
	}
	//跟团
	public static void getDetailGentuan(Context context,String productId,ResponseListener listener){
		String url="http://m.tuniu.com/api/diy/holiday/detail/productInfo?d=%7B%22bookCityCode%22%3A%222500%22%2C%22productId%22%3A"
				+ productId
				+ "%2C%22unauditedFlag%22%3Afalse%7D&c=%7B%22v%22%3A%229.0.4%22%2C%22ct%22%3A20%2C%22dt%22%3A1%2C%22ov%22%3A14%2C%22p%22%3A17675%2C%22cc%22%3A2500%7D";
		HTTPUtils.get(context, url, listener);
	}
	//你可能感兴趣的
	public static void getInterest(Context context,ResponseListener listener){
		HTTPUtils.get(context, Constants.url.INTETEST, listener);
	}
	//我的
	public static void getMine(Context context,ResponseListener listener){
		HTTPUtils.get(context, Constants.url.MINE, listener);
	}
	//banner
	public static void getBanner(Context context,ResponseListener listener){
		HTTPUtils.get(context, Constants.url.BANNER, listener);
	}
	//product
	public static void getProduct(Context context,ResponseListener listener){
		HTTPUtils.get(context, Constants.url.PRODUCT, listener);
	}
	
	
}
